<include file="Public/min-header"/>
<body>
<section class="content">
    <div class="container-fluid">
        <div class="panel panel-default">
            <div class="pull-right">
                <a href="" class="btn btn-default glyphicon glyphicon-arrow-left"></a>
            </div>
            <!-- Default panel contents -->
            <div class="panel-heading">
                <h3 class="panel-title glyphicon glyphicon-list"> 菜单列表</h3>
            </div>
            <div class="panel-body">
                <nav class="navbar navbar-default" role="navigation">
                    <div class="row navbar-form">
                        <button type="button" class="btn btn-primary pull-right glyphicon glyphicon-plus"
                                onclick="goNextPage('__MODULE__/Index/menu_operate')"> 增加菜单
                        </button>
                    </div>
                </nav>
                <!--列表-->
                <form action="javascript:void(0);" id="menu_list_form">
                    <table class="table table-bordered table-hover">
                        <tr>
                            <th class="text-center" style="width:100px">选择</th>
                            <th class="text-center" style="width:150px">菜单名称</th>
                            <th class="text-center" style="width:300px;">链接地址</th>
                            <th class="text-center">是否显示</th>
                            <th class="text-center">是否新窗口</th>
                            <th class="text-center">排序</th>
                            <th class="text-center">操作</th>
                        </tr>
                        <volist name="info" id="vo">
                            <tr>
                                <td class="text-center menu_checkbox"><input type="checkbox" class="menu_id" name="menu_id" value="{$vo.id}">
                                </td>
                                <td>{$vo.html}{$vo.menu_name}</td>
                                <td>{$vo.url}</td>
                                <td class="text-center">
                                    <img src="__PUBLIC__/images/common/<if condition='$vo.is_open eq 1'>yes_1.png<else/>no_0.png</if>"
                                         alt="" onclick="updateTabelField('__MODULE__','is_open','{$vo.id}',this);">
                                </td>
                                <td class="text-center">
                                    <img src="__PUBLIC__/images/common/yes_1.png" alt="">
                                </td>
                                <td class="text-center">
                                    <input type="text" name="" id="" style="width:50px" value="{$vo.sort}"
                                           onchange="updateSort('__MODULE__','sort','{$vo.id}',this)">
                                </td>
                                <td class="text-center">
                                    <a href="__MODULE__/Index/menu_operate/id/{$vo.id}"
                                       class="btn btn-info glyphicon glyphicon-edit"></a>
                                    <a href="javascript:void(0);" onclick="delMenu('__MODULE__','{$vo.id}');"
                                       class="btn btn-info btn-danger glyphicon glyphicon-trash"></a>
                                </td>
                            </tr>
                        </volist>
                        <tr>
                            <td class="text-center" colspan="2">
                                <button class="btn btn-primary" onclick="selectAllMenu('menu_id')">全选</button>
                                <button class="btn btn-primary" onclick="selectNoMenu('menu_id')">全不选</button>
                                <button class="btn btn-primary inverseSelect" onclick="inverseSelect('menu_id')">反选</button>
                            </td>
                            <td>
                                <select name="patch" class="form-control" style="width:50%">
                                    <option value="0">请选择--</option>
                                    <option value="1">开启</option>
                                    <option value="2">取消</option>
                                    <option value="3">删除</option>
                                </select>
                                <button class="btn btn-primary" onclick="batchUpdate('__MODULE__')">执行</button>
                            </td>
                            <td colspan="4"></td>
                        </tr>
                    </table>
                </form>
            </div>
        </div>
    </div>
</section>
</body>
</html>